import Vue from 'vue'
import Router from 'vue-router'
import AdminLogin from '../view/AdminLogin'
import Home from '../view/Home'
import Shop from '../view/Shop'
import Goods from '../view/Goods'
import User from '../view/User'
import Finance from '../view/Finance'
import Renovation from '../view/Renovation'
import Data from '../view/Data'
import AppPage from '../view/AppPage'
import Settings from '../view/Settings'
Vue.use(Router)

export default new Router({
  routes: [
    //默认页面
    {
      path: '/',
      name: 'AdminLogin',
      component: AdminLogin
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/Shop',
      name: 'Shop',
      component: Shop
    },
    {
      path: '/Goods',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/User',
      name: 'User',
      component: User
    },
    {
      path: '/Finance',
      name: 'Finance',
      component: Finance
    },
    {
      path: '/Renovation',
      name: 'Renovation',
      component: Renovation
    },
    {
      path: '/Data',
      name: 'Data',
      component: Data
    },
    {
      path: '/App',
      name: 'AppPage',
      component: AppPage
    },
    {
      path: '/Settings',
      name: 'Settings',
      component: Settings
    },

  ]
})
